package com.eric.domain.po;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
 * <p>
 * 设备表中的图片存储
 * </p>
 *
 * @author 新哥
 * @since 2024-04-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("equipment_photo")
public class EquipmentPhoto implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 主键id,非空、唯一，自增长
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 设备表的id
     */
    @TableField("equipment_encode")
    private String equipmentEncode;
    /**
     * 图片地址
     */
    @TableField("photo_url")
    private String photoUrl;
    /**
     * 创建时间
     */
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private Date createTime;
    /**
     * 最后修改时间
     */
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    /**
     * 删除标志，0：没删除，1：已经删除
     */
    @TableField("deleted")
    @TableLogic
    private Integer deleted;
    /*
     * 乐观锁
     * */
    @TableField("version")
    @Version
    private Integer version;

}
